package com;

import android.util.Log;

public class Logger {

	private static final boolean LOG_ON = false;

	public static final int VERBOSE = Log.VERBOSE;
	public static final int DEBUG = Log.DEBUG;
	public static final int INFO = Log.INFO;
	public static final int WARN = Log.WARN;
	public static final int ERROR = Log.ERROR;
	public static final int ASSERT = Log.ASSERT;

	public static int v(String tag, String msg) {
		if (LOG_ON) {
			return Log.v(tag, msg);
		}
		return 0;
	}

	public static int v(String tag, String msg, Throwable tr) {
		if (LOG_ON) {
			return Log.v(tag, msg, tr);
		}
		return 0;
	}

	public static int d(String tag, String msg) {
		if (LOG_ON) {
			return Log.d(tag, msg);
		}
		return 0;
	}

	public static int d(String tag, String msg, Throwable tr) {
		if (LOG_ON) {
			return Log.d(tag, msg, tr);
		}
		return 0;
	}

	public static int i(String tag, String msg) {
		if (LOG_ON) {
			return Log.i(tag, msg);
		}
		return 0;
	}

	public static int i(String tag, String msg, Throwable tr) {
		if (LOG_ON) {
			return Log.i(tag, msg, tr);
		}
		return 0;
	}

	public static int w(String tag, String msg) {
		if (LOG_ON) {
			return Log.w(tag, msg);
		}
		return 0;
	}

	public static int w(String tag, String msg, Throwable tr) {
		if (LOG_ON) {
			return Log.w(tag, msg, tr);
		}
		return 0;
	}

	public static int w(String tag, Throwable tr) {
		if (LOG_ON) {
			return Log.w(tag, tr);
		}
		return 0;
	}

	public static int e(String tag, String msg) {
		if (LOG_ON) {
			return Log.e(tag, msg);
		}
		return 0;
	}

	public static int e(String tag, String msg, Throwable tr) {
		if (LOG_ON) {
			return Log.e(tag, msg, tr);
		}
		return 0;
	}

	public static boolean isLoggable(String tag, int level) {
		return Log.isLoggable(tag, level);
	}
}
